﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

public partial class AddConfigInput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [DisplayName("名称")]
    [JsonPropertyName("name")]
    [Required(ErrorMessage = "名称不能为空")]
    public string? Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [DisplayName("编码")]
    [JsonPropertyName("code")]
    [Required(ErrorMessage = "编码不能为空")]
    public string? Code { get; set; }

    /// <summary>
    /// 属性值
    /// </summary>
    [DisplayName("属性值")]
    [JsonPropertyName("value")]
    public string? Value { get; set; }

    /// <summary>
    /// 是否是系统参数（Y-是，N-否）
    /// </summary>
    [DisplayName("是否是系统参数（Y-是，N-否）")]
    [JsonPropertyName("sysFlag")]
    public string? SysFlag { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [DisplayName("备注")]
    [JsonPropertyName("remark")]
    public string? Remark { get; set; }

    /// <summary>
    /// 状态（字典 0正常 1停用 2删除）
    /// </summary>
    [DisplayName("状态（字典 0正常 1停用 2删除）")]
    [JsonPropertyName("status")]
    public int Status { get; set; }

    /// <summary>
    /// 常量所属分类的编码，来自于“常量的分类”字典
    /// </summary>
    [DisplayName("常量所属分类的编码，来自于“常量的分类”字典")]
    [JsonPropertyName("groupCode")]
    public string? GroupCode { get; set; }

}
